OneTeamSoftware\WooCommerce\Shipping\Adapter\EasyPost D

Total Complexity 170
Dependencies 0
Dependents 0
Total lines 1,647
Lines of code 1,382
Logical lines of code 371
Comment lines 13
Methods 46
Properties 4

Methods 46

Method Rating Maintainability Complexity Lines of code
initServices()
D
11
1 573
getRatesParams()
C
34 25 82
getRatesResponse()
B
39 21 57
prepareParcelInfo()
A
43 15 46
prepareAddress()
A
44 14 48
setShipmentCacheValues()
A
46 10 42
prepareCustomsInfo()
A
49 10 29
prepareCustomsItem()
S
50 7 26
initPackageTypes()
S
33 1 106
initCarriers()
S
36 1 92
setValidationErrors()
S
59 5 14
validate()
S
57 4 16
prepareCustomsItems()
S
60 4 14
getErrorMessage()
S
63 4 12
getResponse()
S
61 4 11
getRates()
S
57 3 16
__construct()
S
47 1 37
getIntegrationFormFields()
S
51 1 32
getRatesCacheKey()
S
64 3 10
getRequestParams()
S
65 3 8
validateActiveApiToken()
S
67 3 7
getCachedParcelInfo()
S
63 2 10
getServiceName()
S
68 2 7
getCachedCustomsInfo()
S
63 2 10
getApiKey()
S
79 2 3
getCachedAddress()
S
63 2 10
hasMediaMailFeature()
S
82 1 3
hasUseSellerAddressFeature()
S
82 1 3
hasReturnLabelFeature()
S
82 1 3
getServiceId()
S
80 1 3
addHeadersAndParams()
S
78 1 3
getRouteUrl()
S
73 1 5
hasAddressValidationFeature()
S
82 1 3
hasLinkFeature()
S
82 1 3
hasInsuranceFeature()
S
82 1 3
hasOriginFeature()
S
82 1 3
getCacheKey()
S
72 1 5
hasSignatureFeature()
S
82 1 3
hasDisplayDeliveryTimeFeature()
S
82 1 3
hasUpdateShipmentsFeature()
S
82 1 3
hasCreateShipmentFeature()
S
82 1 3
hasCreateManifestsFeature()
S
82 1 3
hasTariffFeature()
S
82 1 3
getName()
S
82 1 3
hasCarriersFeature()
S
82 1 3
hasCustomItemsFeature()
S
82 1 3